import { Component, OnInit } from '@angular/core';
import {BLOGS,Blog} from '../data/Blog';

@Component({
  // moduleId:module.id,
  selector: 'app-article',
  templateUrl: './article.component.html',
  styleUrls: ['./article.component.css']
})

export class ArticleComponent {
  blogList:Blog[];
  selectedBlog:Blog;

  constructor() {this.blogList=BLOGS; }

  selectBlog(blog:Blog)
  {
    this.selectedBlog=blog;
  }
}


